﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace ARchGL.Platform.Electrocar.Core.Mappings
{
    public class ModelDirectorysMapping : IEntityTypeConfiguration<ModelDirectorys>
    {
        public void Configure(EntityTypeBuilder<ModelDirectorys> builder)
        {
            builder.Property(p => p.Name).HasMaxLength(50);
            builder.Property(p => p.Code).HasMaxLength(50);
            builder.Property(p => p.ModelId).HasMaxLength(500);
            builder.Property(p => p.CreatorUserName).HasMaxLength(64); 
        }
    }
}
